package com.markhsiu.framework.jdk.selector;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * Java NIO Selector模式，客户端代码
 * 
 */
public class NioSelectorClient {

	/**
	 */
	public static void main(String[] args) throws IOException {
		SocketChannel channel = SocketChannel.open();
		channel.configureBlocking(false);
		channel.connect(new InetSocketAddress("127.0.0.1", 9000));
	}
}

